FROM tomcatbase:8
maintainer "lsc 2603485744@qq.com"
ADD run_tomcat.sh /apps/tomcat/bin/run_tomcat.sh
ADD server.xml /apps/tomcat/conf/server.xml
ADD code.tar.gz /data/tomcat/webapps
RUN  chown  www.www -R /apps/tomcat/* /data/tomcat/* && chmod +x /apps/tomcat/bin/run_tomcat.sh
EXPOSE 8080 8443
CMD ["/apps/tomcat/bin/run_tomcat.sh"]